<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML LANG="EN-US">
<HEAD>
<TITLE>VT100.net: VT330/VT340 Programmer Reference Manual</TITLE>
<LINK HREF="vt330.css" TYPE="text/css" REL="stylesheet">
</HEAD>
<BODY>
<DIV CLASS="navbar"><A HREF="http://vt100.net/"><IMG CLASS="button" SRC="vt100.net-logo.png" ALT="VT100.net" HEIGHT="16" WIDTH="102"></A> VT330/VT340 Programmer Reference Manual Volume 2: Graphics Programming<TABLE WIDTH="100%">
<COL SPAN="3" WIDTH="33%">
<TBODY>
<TR>
<TD ALIGN="LEFT"><A HREF="chapter11.html">Chapter 11</A></TD>
<TD ALIGN="CENTER"><A HREF="contents.html">Contents</A></TD>
<TD ALIGN="RIGHT"><A HREF="chapter13.html">Chapter 13</A></TD>
</TR>
</TBODY>
</TABLE>
<HR></DIV>
<H1 ID="S12"><SPAN CLASS="chapnum">12</SPAN> Combining ReGIS Commands</H1>
<H2 ID="S12.1">Drawing Complex Images</H2>
<P>Figures <A HREF="#F12-1">12-1</A> through <A HREF="#F12-3">12-3</A> show examples of complex graphic images you can
build with ReGIS commands. Together, these three figures show most of the
ReGIS features available.</P>
<P><A HREF="#F12-1">Figure 12-1</A> uses screen, write control, and text commands to define basic command
values. <A HREF="#F12-2">Figure 12-2</A> uses the values in effect at the end of <A HREF="#F12-1">Figure 12-1</A>.
<A HREF="#F12-3">Figure 12-3</A> uses the values in effect at the end of <A HREF="#F12-2">Figure 12-2</A>.</P>
<TABLE ID="F12-1" CLASS="figure" WIDTH="100%">
<CAPTION>Figure 12-1 Programming Example: Basic Graph</CAPTION>
<COL ALIGN="CENTER">
<TBODY>
<TR>
<TD><IMG SRC="ma-0736-83.png" ALT=""></TD>
</TR>
<TR>
<TD><TABLE CLASS="command-example" FRAME="BORDER" RULES="GROUPS" CELLSPACING="0" CELLPADDING="8">
<TBODY>
<TR>
<TD ALIGN="CENTER">COMMANDS</TD>
</TR>
</TBODY>
<TBODY>
<TR VALIGN="TOP">
<TD>S(M0(L0) 1(L33) 2(L67) 3(L100))<BR>(I3,E)<BR>W(I0,P1(M1),F3,V,S0)<BR>@:TV[-10]P[+10,+50]@;<BR>
@:MV[,+10]P[+100,-10]@;<BR>P[100,100]<BR>V[,+300] [+500]<BR>P[100,150]<BR>@T@T@T@T@T<BR>P[60,140]<BR>
T(A0,S1,I0)(D0,S1,D0)<BR>T'100'P[60,+50]<BR>T' 80'P[60,+50]<BR>T' 60'P[60,+50]<BR>T' 40'P[60,+50]<BR>T' 20'P[60,+50]<BR>
T'  0'P[225,400]<BR>@M@M@M@M<BR>P[225,400] [-10,+20]<BR>T'Q1'P[+85]<BR>T'Q2'P[+80]<BR>T'Q3'P[+80]<BR>T'Q4'P[40,200]<BR>
T(B)[+0,+12](D270,S[9,20],U[8,20])<BR>'% OF BUDGET'(E)<BR>P[350,450]<BR>T'QUARTER'</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<TABLE ID="F12-2" CLASS="figure" WIDTH="100%">
<CAPTION>Figure 12-2 Programming Example: Pie Graph</CAPTION>
<COL ALIGN="CENTER">
<TBODY>
<TR>
<TD><IMG SRC="ma-0737-83.png" ALT=""></TD>
</TR>
<TR>
<TD><TABLE CLASS="command-example" FRAME="BORDER" RULES="GROUPS" CELLSPACING="0" CELLPADDING="8">
<TBODY>
<TR>
<TD ALIGN="CENTER">COMMANDS</TD>
</TR>
</TBODY>
<TBODY>
<TR VALIGN="TOP">
<TD>S(E)<BR>P[300,320]<BR>W(S'/')<BR>C[+135]<BR>W(S0)<BR>C[+135]<BR>P[+135]<BR>W(S1)(I3)<BR>
C(C,A+45)[300,320]<BR>V[300,320]<BR>P[+25,-7]<BR>W(S1)(I0)<BR>P[+150]<BR>C(C,A+45)[-150]<BR>V[325,313]<BR>
P[220,220]<BR>T(S2,W(R))'other&lt;CR&gt;&lt;LF&gt;90.0%'<BR>P[495,225]<BR>T'Administrative&lt;CR&gt;&lt;LF&gt;10.0%'<BR>
P[30,60]<BR>T(B)(S3,I-22)<BR>'Administrative Costs Are<BR>
&lt;CR&gt;&lt;LF&gt;Small Portion of Total'<BR>(E)</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<TABLE ID="F12-3" CLASS="figure" WIDTH="100%">
<CAPTION>Figure 12-3 Programming Example: Graph with Shading</CAPTION>
<COL ALIGN="CENTER">
<TBODY>
<TR>
<TD><IMG SRC="ma-0738-83.png" ALT=""></TD>
</TR>
<TR>
<TD><TABLE CLASS="command-example" FRAME="BORDER" RULES="GROUPS" CELLSPACING="0" CELLPADDING="8">
<TBODY>
<TR>
<TD ALIGN="CENTER">COMMANDS</TD>
</TR>
</TBODY>
<TBODY>
<TR VALIGN="TOP">
<TD>S(E)<BR>P[50,50]<BR>V[,+350] [+600]<BR>P[70,70]<BR>T(S2)'Effective Sales Management Produced<BR>
&lt;CR&gt;&lt;LF&gt;<BR>Sales in Excess of Plan Each Quarter'<BR>P[160,240]<BR>T(I-22)'1'P[+120]<BR>
T'2'P[+120]<BR>T'3'P[+90]<BR>T'4'P[192,400]<BR>W(S1)P[,-85] V[-40]<BR>P[342,400] [,-120] V[-40]<BR>
P[482,400] [,-60] V[-40]<BR>P[602,400] [,-170] V[-40]<BR>P[+20,-30]<BR>T(S1)'Actual'<BR>P[172,399]T(S3)<BR>
W(S'#',R)P[,-60] V[-40]<BR>P[322,399] [,-95] V[-40]<BR>P[462,399] [,-50] V[-40]<BR>P[582,399] [,-140] V[-40] T(S1)<BR>
P[-55,+5] W(S0,V) T'Plan'<BR>P[582,399] V[,-140] [-40] [,+140]<BR>P[462,399] V[,-50] [-40] [,+50]<BR>
P[322,399] V[,-95] [-40] [,+95]<BR>P[172,399] V[,-60] [-40] [,+60]</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<DIV CLASS="navbar"><HR>
<TABLE WIDTH="100%">
<COL SPAN="3" WIDTH="33%">
<TBODY>
<TR>
<TD ALIGN="LEFT"><A HREF="chapter11.html">Chapter 11</A></TD>
<TD ALIGN="CENTER"><A HREF="contents.html">Contents</A></TD>
<TD ALIGN="RIGHT"><A HREF="chapter13.html">Chapter 13</A></TD>
</TR>
</TBODY>
</TABLE>
<DIV CLASS="navbot">http://vt100.net/docs/vt3xx-gp/chapter12.html</DIV></DIV>
</BODY>
</HTML>
